package com.baizhi.springboot.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Reserve {
    /*`id` int(11) NOT NULL AUTO_INCREMENT,
  `meeting_id` varchar(255) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `use` varchar(255) DEFAULT NULL,
  `record` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `reservedate` datetime DEFAULT NULL,*/
    private Integer id;
    private Integer meeting_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enddate;
    private String use;
    private String record;
    private String type;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reservedate;

    @Override
    public String toString() {
        return "Reserve{" +
                "id=" + id +
                ", meeting_id=" + meeting_id +
                ", startdate=" + startdate +
                ", enddate=" + enddate +
                ", use='" + use + '\'' +
                ", record='" + record + '\'' +
                ", type='" + type + '\'' +
                ", reservedate=" + reservedate +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMeeting_id() {
        return meeting_id;
    }

    public void setMeeting_id(Integer meeting_id) {
        this.meeting_id = meeting_id;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public String getUse() {
        return use;
    }

    public void setUse(String use) {
        this.use = use;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getReservedate() {
        return reservedate;
    }

    public void setReservedate(Date reservedate) {
        this.reservedate = reservedate;
    }

    public Reserve() {
    }

    public Reserve(Integer id, Integer meeting_id, Date startdate, Date enddate, String use, String record, String type, Date reservedate) {
        this.id = id;
        this.meeting_id = meeting_id;
        this.startdate = startdate;
        this.enddate = enddate;
        this.use = use;
        this.record = record;
        this.type = type;
        this.reservedate = reservedate;
    }
}

